package teste;
import java.sql.SQLException;
import java.util.List;

import modelo.Cliente;
import modelo.EnumNorma;

import com.mysql.jdbc.Connection;
import com.mysql.jdbc.jdbc2.optional.SuspendableXAConnection;

import controle.ClienteControle;
import controle.FluidoControle;
import controle.Sistema;
import dao.ClienteDao;
import dao.FluidoDao;


public class TestaBanco {
	
	public static void main(String[] args) throws ClassNotFoundException {
		
		try {
			Sistema.getDAOFactory().getConnection();
			System.out.println("conectou");
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		ClienteControle ctrlCliente = new ClienteControle();		
		List<Cliente> lista = ctrlCliente.getCliente();
		for(Cliente c : lista) {
			System.out.println(c.getDsCliente());
		}
		
		
		
		
		
	}

}
